home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 7531 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  553 b 

  1. Path: darkstar.UCSC.EDU!clp
  2. From: clp@cse.ucsc.edu (Chuck L. Peterson)
  3. Newsgroups: comp.lang.c++
  4. Subject: VC++ 4.0 GetLastError()
  5. Date: 23 Feb 1996 20:21:44 GMT
  6. Organization: University of California, Santa Cruz
  7. Message-ID: <4gl7ko$3f6@darkstar.UCSC.EDU>
  8. NNTP-Posting-Host: alumni.cse.ucsc.edu
  9.  
  10. Does anyone have any suggestions on how to convert an
  11. errorCode to an ascii string description?
  12.  
  13. As it is now, the only way I can think of is with:
  14.     switch(GetLastError()) {
  15.     case WSABLAHBLAH:
  16.         str = "Blah Blah Error";
  17.         break;
  18.     ... repeat 40 times ...
  19.     }
  20.  
  21.